﻿using System;
using NazSoft.Framework;

public partial class Messaging : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        CustomError customError = SessionHandler.GetItem(SessionHandler.SessionItems.CustomError) as CustomError;
        if (customError != null)
        {
            ErrorTitleLabel.Text = customError.ErrorTitle;
            ErrorMessageLabel.Text = customError.ErrorMessage;
        }

        if (Request.QueryString["mid"] != null)
        {
            ErrorTitleLabel.Text = "";
            ErrorMessageLabel.Text = "";
            string strid = Request.QueryString["mid"].ToString();
            // Add new vihicle message
            if (strid == "1")
            {
                ErrorMessageLabel.Text = "Vehicle has been added successfully";
                ErrorMessageLabel.Visible = true;

            }
        }

    }
}
